using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using StupidSpaceThing;

namespace RacerGame
{
	internal class MineEntity : FlyingEntity
	{
		private static Model _model;
		public static void InitModel(Model model) {
			_model = model;
		}
		public float Spin = 0.02f;

		public MineEntity(Vector3 position)
			: base(_model, position + Map.MaxHeightOffset, Quaternion.Identity, 0.0015f) {
			armor = 3;
			float radius = 2.0f;
			colObject = new ColCircle(this, 5, radius);			
			colObject.Geom.RestitutionCoefficient = .7f;
			colObject.Geom.FrictionCoefficient = 0.2f;
			colObject.Body.LinearDragCoefficient = 6f;
		}

		public override void Update(RealGameTime gameTime) {
			Rotate(0, Spin, 0);
			base.Update(gameTime);
		}
	}
}
